package org.example.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageInfo {
    private Integer size;
    private Integer start;
    private Integer allCount;
    private Integer allPage;
    private Integer page;

    public PageInfo(Integer page,Integer size) {
        this.page = page;
        this.size = size;
        this.start = (page-1)*size;
    }
}
